<?php
/**
 * 站长表验证器
 */

namespace app\common\validate;

class UserAgentValidate extends Validate
{
    protected $rule = [
            'username|用户名' => 'require',
    'password|密码' => 'require',
    'mobile|手机号' => 'require',
    'qq|qq' => 'require',
    'email|邮箱' => 'require',
    'user_money|金币余额' => 'require',

    ];

    protected $message = [
            'username.require' => '用户名不能为空',
    'password.require' => '密码不能为空',
    'mobile.require' => '手机号不能为空',
    'qq.require' => 'qq不能为空',
    'email.require' => '邮箱不能为空',
    'user_money.require' => '金币余额不能为空',

    ];

    protected $scene = [
        'add'  => ['username','password','mobile','qq','email','user_money',],
'edit' => ['username','password','mobile','qq','email','user_money',],

    ];

    

}
